package com.ant.boot.component;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.jdbc.metadata.OracleUcpDataSourcePoolMetadata;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ComponentA {
    @Value("${my.name:spring}")
    private String name;
    @Resource
    private ComponentB componentB;
    @Resource
    private ComponentC componentC;
    @Resource
    private ComponentD componentD;
    @Resource
    private ComponentF componentF;
    public void hello(){
        System.out.println("hello--A");
        componentB.hello();
        componentC.hello();
        componentD.hello();
        componentF.hello();
        System.out.println("name："+name);
    }
}
